package jmine.tec.datadigester.positional.writer.factory;

import jmine.tec.datadigester.positional.meta.PositionalLongFieldMetadata;
import jmine.tec.datadigester.positional.writer.LongPositionalFieldWriter;
import jmine.tec.datadigester.positional.writer.PositionalFieldWriter;

/**
 * {@link PositionalWriterFactory} para writers de campos Long
 * 
 * @author israel.crisanto
 */
public class LongPositionalWriterFactory implements PositionalWriterFactory<PositionalLongFieldMetadata> {

    /**
     * {@inheritDoc}
     */
    public PositionalFieldWriter create(PositionalLongFieldMetadata meta) {
        return new LongPositionalFieldWriter(meta);
    }

    /**
     * {@inheritDoc}
     */
    public Class<PositionalLongFieldMetadata> getFieldMetadataType() {
        return PositionalLongFieldMetadata.class;
    }

}
